$OpenBSD: patch-configure,v 1.5 2016/12/25 21:13:04 jung Exp $
--- configure.orig	Sun Nov  6 09:54:16 2016
+++ configure	Thu Dec  1 22:07:12 2016
@@ -5298,7 +5298,7 @@ if ${ac_cv_lib_ofx_ofx_set_status_cb+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lofx  $LIBS"
+LIBS="`pkg-config --libs libofx`  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -5332,7 +5332,7 @@ if test "x$ac_cv_lib_ofx_ofx_set_status_cb" = xyes; th
   OFX_0_7="-DOFX_ENABLE"
 fi
 
-        DEPS_LIBS="-lofx ${DEPS_LIBS}"
+        DEPS_LIBS="`pkg-config --libs libofx` ${DEPS_LIBS}"
         CFLAGS="${CFLAGS} $OFX_0_7"
     else
         noofx=true
